package com.hue.gulimail.gulimailware.exception;

import org.omg.SendingContext.RunTime;

/**
 * @Author: 姚凤桥
 * @Date: 2021/12/27 21:54
 * @Description: 没有库存异常
 */
public class NotStockException extends RuntimeException {
    private Long skuId;

    public NotStockException(Long skuId) {
        super("skuId为[" + skuId + "]的商品没有库存了!");
    }

    public Long getSkuId() {
        return skuId;
    }

    public void setSkuId(Long skuId) {
        this.skuId = skuId;
    }
}
